//
//  LBDebugLogger.m
//  LBFoundation
//
//  Created by WuShiHai on 19/5/24.
//  Copyright (c) 2019 Lebbay. All rights reserved.
//

#import "LBDebugLogger.h"

static void(^_LBDebugLoggerMessageBlock)(NSString *messsage, NSDictionary *info);

@implementation LBDebugLogger

+ (void)logMessage:(NSString *)message info:(id)info {
    _LBDebugLoggerMessageBlock ? _LBDebugLoggerMessageBlock(message, [info isKindOfClass:[NSDictionary class]] ? info : nil): nil;
}

+ (void)registerService:(void(^)(NSString *messsage, NSDictionary *info))block {
    _LBDebugLoggerMessageBlock = block;
}

@end
